package com.ruoyi.aslife.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户信息管理对象 user
 * 
 * @author ruoyi
 * @date 2022-12-01
 */
public class AS_User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Long uid;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 用户密码 */
    @Excel(name = "用户密码")
    private String password;

    /** 头像 */
    @Excel(name = "头像")
    private String headimg;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 用户名 */
    @Excel(name = "用户名")
    private String name;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setHeadimg(String headimg) 
    {
        this.headimg = headimg;
    }

    public String getHeadimg() 
    {
        return headimg;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("uid", getUid())
            .append("email", getEmail())
            .append("password", getPassword())
            .append("headimg", getHeadimg())
            .append("sex", getSex())
            .append("birthday", getBirthday())
            .append("name", getName())
            .append("status", getStatus())
            .toString();
    }
}
